/* global App */
/* global appConfig */
require(["common", "hash_routie", "coAjax", "jQuery", "browser", "href", "eventManager"], function(jSouper, hash_routie, coAjax, QueryString, $, borwser, href, eventManager) {
	coAjax.get(appConfig.goods.list, {
		bus_id: appConfig.bus_id,
		num: 10,
		page: 0
	}, function(result) {
		var goods_list = result.result;
		App.set("goods_list", goods_list);
	}, function() {
		console.log(arguments);
	});
	coAjax.get(appConfig.open.bus_assshop + App.get("bus_info.bus_id"), function(result) {
		console.log('result', result.result);
		App.set("$Cache.bus.assshop.list", result.result);
	});
	App.set("$Event.show_store_qrcode", function() {
		App.model.toggle("show_qrcode");
	});
});